package org.bleep.scene;

import org.lwjgl.opengl.GL11;

public class Layer extends Node
{
	protected float x, y, z;
	
	public Layer(float x, float y, float z)
	{
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	public void translate(float x, float y)
	{
		this.x += x;
		this.y += y;
	}
	
	public void pre()
	{
		GL11.glPushMatrix();
		GL11.glTranslatef(x, y, z);
	}
	
	public void post()
	{
		GL11.glPopMatrix();
	}
}